/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.suarte.core.service.impl;

import com.suarte.core.Currency;
import com.suarte.core.dao.CurrencyDao;
import com.suarte.core.service.CurrencyManager;
import java.util.List;
import org.appfuse.service.impl.GenericManagerImpl;

/**
 *
 * @author giovanella
 */
public class CurrencyManagerImpl extends GenericManagerImpl<Currency, Long> implements CurrencyManager {
    CurrencyDao currencyDao;

    public CurrencyManagerImpl(CurrencyDao currencyDao) {
        super(currencyDao);
        this.currencyDao = currencyDao;
    }

    public List<Currency> findByDescription(String description) {
        return currencyDao.findByDescription(description);
    }

    public List<Currency> findBySymbol(String symbol) {
        return currencyDao.findBySymbol(symbol);
    }

    public Currency findLocal() {
        return currencyDao.findLocal();
    }

    public Currency findSystemDefault() {
        return currencyDao.findSystemDefault();
    }

    public List<Currency> findAllButLocal() {
        return currencyDao.findAllButLocal();
    }
    
    
}
